﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewProgress.aspx.cs" Inherits="Site.ViewProgress" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    </style>
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null && sender != 0) {
                appSource = sender.getHost().Source;
            }

            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
                return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n";

            errMsg += "Code: " + iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " + args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }
    </script>

    <link href="style.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form2" runat="server">
	<div id="wrapper">
		<div id="menu">
<ul>
				<li ><!--class="current_page_item"--><span><a href="Login.aspx">Home</a></span></li>
				<li><a href="ViewProgress.aspx">Performance</a></li>
				<!--<li><a href="#">Contacts</a></li>-->
			</ul><div align="right"><asp:Button id="btnLogout" runat="server" Text="Logout" 
                    onclick="btnLogout_Click"/></div>
		</div>
		<!-- end #menu -->
		<div id="header">
			<div id="logo">
			</div>
		</div>

        <%--<div id="splash">--%><div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="1220" height="563">
		  <param name="source" value="ClientBin/SiteSL.xap"/>
		  <param name="onError" value="onSilverlightError" />
		  <param name="background" value="white" />
		  <param name="minRuntimeVersion" value="4.0.50826.0" />
		  <param name="autoUpgrade" value="true" />
          <param name="initParams" id="prmInitParams" runat="server" />
		  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50826.0" style="text-decoration:none">
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
		  </a>
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
		<%--<div id="splash" style="height: 500px">
			<div id="Login">
				<center><br><br><br>
				<img alt="LoginBackground" src="images/loginBackground.png" style="height: auto; width: auto">
				<div id="loginDetail" style="width: 330px; height: 7px">
					<br><br>Please enter your username and password:<br><br>
					<br>
					<table>
						<tr>
							<td>Username:</td>
							<td>
							<asp:TextBox ID="tbxUsername" runat="server"></asp:TextBox>
							</td>
						</tr>
						<tr>
							<td>Password:</td>
							<td>
							<asp:TextBox ID="tbxPassword" runat="server" TextMode="Password"></asp:TextBox>
							</td>
						</tr>
						<tr>
							<td colspan="2">&nbsp;</td>
						</tr>
						<tr>
							<td><center>
							<asp:Button ID="btnLogin" runat="server" Text="Submit"></asp:Button>
							</center></td>
						</tr>
					</table>
				</div>
&nbsp;</center></div>
		</div>--%>
		<!-- end #header -->
		<div id="page">
			<div id="page-bgtop">
				<div id="page-bgbtm">
					<!-- end #content -->
				</div>
			</div>
		</div>
		<!-- end #page --></div>
	<div id="footer-wrapper">
		<!--	<div id="three-columns">
		<div id="column1">
			<h2>Consectetuer</h2>
			<ul>
				<li><a href="#">Aliquam libero</a></li>
				<li><a href="#">Consectetuer adipiscing elit</a></li>
				<li><a href="#">Metus aliquam pellentesque</a></li>
				<li><a href="#">Suspendisse iaculis mauris</a></li>
				<li><a href="#">Urnanet non molestie semper</a></li>
				<li><a href="#">Proin gravida orci porttitor</a></li>
			</ul>
		</div>
		<div id="column2">
			<h2>Suspendisse</h2>
			<ul>
				<li><a href="#">Aliquam libero</a></li>
				<li><a href="#">Consectetuer adipiscing elit</a></li>
				<li><a href="#">Metus aliquam pellentesque</a></li>
				<li><a href="#">Suspendisse iaculis mauris</a></li>
				<li><a href="#">Urnanet non molestie semper</a></li>
				<li><a href="#">Proin gravida orci porttitor</a></li>
			</ul>
		</div>
		<div id="column3">
			<h2>Pellentesque</h2>
			<ul>
				<li><a href="#">Aliquam libero</a></li>
				<li><a href="#">Consectetuer adipiscing elit</a></li>
				<li><a href="#">Metus aliquam pellentesque</a></li>
				<li><a href="#">Suspendisse iaculis mauris</a></li>
				<li><a href="#">Urnanet non molestie semper</a></li>
				<li><a href="#">Proin gravida orci porttitor</a></li>
			</ul>
		</div>
	</div> -->
		<div id="footer">
			<p>Copyright (c) 2011 ERSS</p>
		</div>
		<!-- end #footer --></div>
</form>
</body>
</html>